Package org.mozilla.jss.ssl.javax
Class JSSEngineReferenceImpl.CertValidationTask
java.lang.Object
org.mozilla.jss.nss.CertAuthHandler
org.mozilla.jss.ssl.javax.JSSEngineReferenceImpl.CertValidationTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
JSSEngineReferenceImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final WeakReference<JSSEngineReferenceImpl> private final booleanprivate final X509TrustManager[]Fields inherited from class org.mozilla.jss.nss.CertAuthHandler
finished, result -
Constructor Summary
ConstructorsConstructorDescriptionCertValidationTask(SSLFDProxy fd, boolean asServer, boolean needClientAuth, X509TrustManager[] trustManagers, JSSEngineReferenceImpl engine) -
Method Summary
Modifier and TypeMethodDescriptionprivate intassignException(Exception excpt, PK11Cert[] chain, JSSEngineReferenceImpl engine) intcheck(SSLFDProxy fd) Returns the PRErrorCode the error validating certificate auth, else 0.findAuthType(SSLFDProxy ssl_fd, PK11Cert[] chain) private inthandleCertificateException(Exception excpt, PK11Cert[] chain, JSSEngineReferenceImpl engine) Methods inherited from class org.mozilla.jss.nss.CertAuthHandler
run
-
Field Details
-
engineRef
-
as_server
private final boolean as_server -
need_client_auth
private final boolean need_client_auth -
trust_managers
-
-
Constructor Details
-
CertValidationTask
public CertValidationTask(SSLFDProxy fd, boolean asServer, boolean needClientAuth, X509TrustManager[] trustManagers, JSSEngineReferenceImpl engine)
-
-
Method Details
-
findAuthType
- Throws:
Exception
-
check
Description copied from class:CertAuthHandlerReturns the PRErrorCode the error validating certificate auth, else 0. Note that it is up to the implementer to fetch the certificates (via SSL.PeerCertificateChain(ssl_fd)) and validate them properly.- Specified by:
checkin classCertAuthHandler
-
assignException
-
handleCertificateException
private int handleCertificateException(Exception excpt, PK11Cert[] chain, JSSEngineReferenceImpl engine)
-